package com.sn.author.dao;

import com.sn.author.domain.entity.ImportAccount;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ImportAccountMapper extends BaseMapper<ImportAccount, Long> {

    List<ImportAccount> selectSort(@Param("sort") String sort);

    ImportAccount selectByPhone(@Param("phone") String phone);

    void addAttentionCount(@Param("phone") String phone, @Param("count") Integer count);

    void addLikeCount(@Param("phone") String phone, @Param("count") Integer count);

    List<ImportAccount> selectByIds(@Param("userIds") List<String> userIds);

    void addCommentCount(@Param("phone") String phone, @Param("count") Integer count);

    ImportAccount selectOnlineAccount();

}